package com.example.block_chain.controller.classs;

import com.example.block_chain.common.ResponseResult;
import com.example.block_chain.domain.dto.Admin_ClassDto;
import com.example.block_chain.service.classs.AdminClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AdminClassController {

    @Autowired
    private AdminClassService adminClassService;

    @PostMapping("/add/admin-class/")
    private ResponseResult addAdmin_Class(@RequestBody Admin_ClassDto dto) {
        return adminClassService.addAdmin_Class(dto);
    }
}
